package com.kingyea.mobilepolice.usermenu.service;

import com.kingyea.mobilepolice.usermenu.bean.UserMenu;
import com.kingyea.mobilepolice.usermenu.bean.UserMenuCondition;
import com.kingyea.mobilepolice.usermenu.bean.UserMenuPo;

import java.util.List;

/**
 * @author hx
 * @version v1.0.0
 * @description UserMenu 接口
 * @date Created in 2018-04-17 15:15:36
 */
public interface UserMenuService {

    /**
     * 通过ID查找对象
     *
     * @return
     */
    UserMenu getById() throws Exception;

    /**
     * 列表
     *
     * @param condition
     * @return
     */
    List<UserMenu> search(UserMenuCondition condition) throws Exception;

    /**
     * 删除
     *
     * @param
     * @return
     */
    int deleteById(String userId) throws Exception;

    /**
     * 添加
     *
     * @param userMenu
     * @return
     */
    UserMenu save(UserMenu userMenu) throws Exception;

    /**
     * 更新
     *
     * @param userMenu
     * @return
     */
    UserMenu update(UserMenu userMenu) throws Exception;

    boolean addMenuForUser(UserMenuPo po);
}
